import request from '@/utils/request'

// 查询品牌分类关联列表
export function listBrandcategory(query) {
  return request({
    url: '/product/brand/category/list',
    method: 'get',
    params: query
  })
}

// 查询品牌分类关联详细
export function getBrandcategory(brandId) {
  return request({
    url: '/product/brand/category/' + brandId,
    method: 'get'
  })
}

// 新增品牌分类关联
export function addBrandcategory(data) {
  return request({
    url: '/product/brand/category',
    method: 'post',
    data: data
  })
}

// 修改品牌分类关联
export function updateBrandcategory(data) {
  return request({
    url: '/product/brand/category',
    method: 'put',
    data: data
  })
}

// 删除品牌分类关联
export function delBrandcategory(data) {
  return request({
    url: '/product/brand/category',
    method: 'delete',
    data: data
  })
}
